package com.nd.pojo.vo.wx;

import com.nd.pojo.bean.Category;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Set;

/**
 * @program: project2mall
 * @description:
 * @author: shit_code_builder
 * @create: 2021-06-08 23:43
 **/
public class SelectResult {

    /**
     * goodsList : [{"id":1181008,"name":"TEST","brief":"简介","picUrl":"","isNew":true,"isHot":true,"counterPrice":123,"retailPrice":123}]
     * count : 1
     * filterCategoryList : [{"id":1008008,"name":"被枕","keywords":"","desc":"守护你的睡眠时光","pid":1005000,"iconUrl":"http://yanxuan.nosdn.127.net/927bc33f7ae2895dd6c11cf91f5e3228.png","picUrl":"http://yanxuan.nosdn.127.net/b43ef7cececebe6292d2f7f590522e05.png","level":"L2","sortOrder":2,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}]
     */

    private long count;
    private List<GoodsListBean> goodsList;
    private Set<Category> filterCategoryList;

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public List<GoodsListBean> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsListBean> goodsList) {
        this.goodsList = goodsList;
    }

    public Set<Category> getFilterCategoryList() {
        return filterCategoryList;
    }

    public void setFilterCategoryList(Set<Category> filterCategoryList) {
        this.filterCategoryList = filterCategoryList;
    }

    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class GoodsListBean {
        /**
         * id : 1181008
         * name : TEST
         * brief : 简介
         * picUrl :
         * isNew : true
         * isHot : true
         * counterPrice : 123.0
         * retailPrice : 123.0
         */

        private int id;
        private String name;
        private String brief;
        private String picUrl;
        private boolean isNew;
        private boolean isHot;
        private double counterPrice;
        private double retailPrice;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getBrief() {
            return brief;
        }

        public void setBrief(String brief) {
            this.brief = brief;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public boolean isIsNew() {
            return isNew;
        }

        public void setIsNew(boolean isNew) {
            this.isNew = isNew;
        }

        public boolean isIsHot() {
            return isHot;
        }

        public void setIsHot(boolean isHot) {
            this.isHot = isHot;
        }

        public double getCounterPrice() {
            return counterPrice;
        }

        public void setCounterPrice(double counterPrice) {
            this.counterPrice = counterPrice;
        }

        public double getRetailPrice() {
            return retailPrice;
        }

        public void setRetailPrice(double retailPrice) {
            this.retailPrice = retailPrice;
        }
    }


}
